Skip to main content
POST
/
api
/
portrait
/
effects
/
face-fusion
Merge Portraits
curl --request POST \
  --url https://www.ailabapi.com/api/portrait/effects/face-fusion \
  --header 'Content-Type: multipart/form-data' \
  --header 'ailabapi-api-key: <api-key>' \
  --form 'source_similarity=<string>' \
  --form image_target=@example-file \
  --form image_template=@example-file
{
  "request_id": "",
  "log_id": "",
  "error_code": 0,
  "error_code_str": "",
  "error_msg": "",
  "error_detail": {
    "status_code": 200,
    "code": "",
    "code_message": "",
    "message": ""
  },
  "data": {
    "image": ""
  }
}

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
image_target
file

Target image.

image_template
file

Template images.

source_similarity
string

Face similarity, where a higher numerical value indicates greater similarity. <li>0: Consistent with the original template.</li> <li>1: Maximum similarity with the target image.</li>

Response

200 - application/json

Success

The response is of type object.